import { Injectable } from '@angular/core';
import { HttpClientService } from '../../../services/http-client.service';

@Injectable()
export class HomeService {

	constructor(
		public httpClient: HttpClientService
	) { }
	// 右侧统计图
	getCharts(sFundType) {
		return this.httpClient.get('/pms/1/stat/costFlowInfo', 'sFundType=' + sFundType);
	}
	// 下方折线图
	geteCharts(){
		return this.httpClient.get('/pms/1/stat/annualQuantity');
	}
	// 字典值
	getDictionary(getBody) {
		return this.httpClient.get('/pms/v1/common/dict/itemNo?sItemNos=', getBody);
	}
	// 托管行字典值
	// getBankDictionary() {
	// 	return this.httpClient.get('/pms/v1/common/institutions/instilist');
	// }
}
